home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 41.zip / BS1 part 41 / Devpac 2.12 disk 2.adf / include.cbm / devices / clipboard.i < prev    next >
Text File  |  1987-03-31  |  2KB  |  66 lines

  1.    IFND     DEVICES_CLIPBOARD_I
  2. DEVICES_CLIPBOARD_I  EQU   1
  3. ********************************************************************
  4. *               Commodore-Amiga, Inc.                              *
  5. *               clipboard.i                                        *
  6. ********************************************************************
  7. ********************************************************************
  8. *
  9. *  clipboard device command definitions
  10. *
  11. ********************************************************************
  12.  
  13.    IFND     EXEC_NODES_I
  14.    INCLUDE     "exec/nodes.i"
  15.    ENDC
  16.    IFND     EXEC_LISTS_I
  17.    INCLUDE     "exec/lists.i"
  18.    ENDC
  19.    IFND     EXEC_PORTS_I
  20.    INCLUDE     "exec/ports.i"
  21.    ENDC
  22.    IFND     EXEC_IO_I
  23.    INCLUDE     "exec/io.i"
  24.    ENDC
  25.  
  26.    DEVINIT
  27.  
  28.    DEVCMD   CBD_POST
  29.    DEVCMD   CBD_CURRENTREADID
  30.    DEVCMD   CBD_CURRENTWRITEID
  31.  
  32. CBERR_OBSOLETEID  EQU   1
  33.  
  34.  
  35.  STRUCTURE  ClipboardUnitPartial,0
  36.     STRUCT  cu_Node,LN_SIZE;     ; list of units
  37.     ULONG   cu_UnitNum;       ; unit number for this unit
  38.     ; the remaining unit data is private to the device
  39.  
  40.  
  41.  STRUCTURE  IOClipReq,0
  42.     STRUCT  io_Message,MN_SIZE
  43.     APTR    io_Device         ; device node pointer 
  44.     APTR    io_Unit           ; unit (driver private)
  45.     UWORD   io_Command        ; device command
  46.     UBYTE   io_Flags          ; including QUICK and SATISFY
  47.     BYTE    io_Error          ; error or warning num
  48.     ULONG   io_Actual         ; number of bytes transferred
  49.     ULONG   io_Length         ; number of bytes requested
  50.     APTR    io_Data           ; either clip stream or post port
  51.     ULONG   io_Offset         ; offset in clip stream
  52.     LONG    io_ClipID         ; ordinal clip identifier
  53.     LABEL   iocr_SIZEOF
  54.  
  55.  
  56.  
  57. PRIMARY_CLIP   EQU   0        ; primary clip unit
  58.  
  59.  STRUCTURE  SatisfyMsg,0
  60.     STRUCT  sm_Msg,MN_SIZE    ; the length will be 6
  61.     UWORD   sm_Unit           ; which clip unit this is
  62.     LONG    sm_ClipID         ; the clip identifier of the post
  63.     LABEL   satisfyMsg_SIZEOF
  64.  
  65.    ENDC
  66.